package com.woniu.payback_font.service.impl;

import com.woniu.payback_font.mapper.PermissionMapper;
import com.woniu.payback_font.service.PermissionService;
import com.woniu.payback_font.vo.PermissionMenuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    PermissionMapper permissionMapper;

    /**
     *权限树查询封装语句（查询所有，测试）
     * @return
     */
    @Override
    public List<PermissionMenuVo> findPermissionMenus() {
        return permissionMapper.findPermissionMenus();
    }
}
